<script type="text/javascript" src="//ty.cqjtu.edu.cn/navbar/nav.js" charset="gbk"></script>

<nav class="subnav">
<div class="am-g am-g-fixed am-cf">
    <div class="am-fl">
        {if condition="!is_login()"}
        <p class="welcome">欢迎来到天佑二手货 <a href="{:url('auth/login')}">请登录</a> <a href="{:url('auth/register')}">注册一个</a></p>
        {else /}
        <p class="welcome">
            {:is_login('username')} 你好
            <a href="{:url('goods/goodsList')}">我的二手货</a>
            <a href="">收藏夹</a>
            <a href="javascript: ajax_logout();">注销</a>
        </p>
        {/if}
    </div>
    <div class="am-fr">
        <ul class="nav-right">
            <li><a class="am-btn am-btn-sm am-btn-primary" href="{:url('goods/addGoods')}">
                <i class="am-icon am-icon-sm am-icon-shopping-cart"></i> 添加</a></li>
            <li><a href=""><i class="am-icon am-icon-mobile am-icon-sm"></i> 手机版</a></li>
        </ul>
    </div>
</div>
</nav>